import request from "@/utils";

// 获取帖子数据
export const getCommunityAPI = () => {
  return request({
    url: "/api/community",
    method: "get",
  });
};

// 更改审核状态接口
export const updateStateAPI = (id) => {
  return request({
    url: "/api/updateCommunity/" + id,
    method: "post",
  });
};

// 删除帖子接口
export const delCommunityAPI = (id) => {
  return request({
    url: "/api/delteCommunity/" + id,
    method: "get",
  });
};
